package HttpPages;

import java.util.Vector;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import Database.Database;
import Objects.UserProfile;


@Path("/userDetails")
public class UserDetails
{

	//-----------------------------------http methods--------------------------------

	@POST
	@Produces(MediaType.APPLICATION_XML)
	public UserProfile getObjInXml(@FormParam("deviceId") String deviceId) 
	{
		System.out.println("requested APPLICATION_XML userDetails");
		return Database.getInstance().getUserProfile(deviceId);
	}

}
